<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>作品提交页面</title>
    <link rel="stylesheet" href="bootstrap.min.css">
    <link rel="stylesheet" href="main.css">
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <a class="navbar-brand" href="index.php">HTML5 创意应用</a>
        </div>
        <div id="navbar" class="collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <li class="active"><a href="index.php">比赛作品</a></li>
                <li><a href="#about">评委登录</a></li>
            </ul>
        </div>
        <!--/.nav-collapse -->
    </div>
</nav>
<div class="container">
    <div id="anniuzu">
        <a href="submit.php"class="btn  bg-primary">提交作品</a>
        <button type="button" class="btn btn-primary">下载excel</button>
    </div>
    <table class="table table-striped">
        <thead>
        <tr>
            <th>参赛作品</th>
            <th>学校</th>
            <th>小组名称</th>
            <th>提交时间</th>
        </tr>
        </thead>
        <tbody>
        <?php
        include "conn.php";
        $result = mysql_query("SELECT * FROM team");

        while($row = mysql_fetch_array($result))
        {
            echo "<tr><td>".$row['name']."</td><td>".$row['school']."</td><td>".$row['team']."</td><td>".$row['time']."</td></tr>";
        }
        ?>
        </tbody>
    </table>

</div>
</body>
</html>